package com.gk.javaservice.util.resuming;

public class TestMethod {

    public TestMethod()
    {
        try
        {
            SiteInfoBean bean = new SiteInfoBean(
                    //"http://banzou.cdn.aliyun.com/apk/changba_6093.apk",
                    "http://192.168.10.227:9090/File/downTest",
                    "G:\\迅雷下载", "阳光电影.mp4", 3);

            SiteFileFetch fileFetch = new SiteFileFetch(bean);
            //fileFetch.start();

            //http://192.168.10.227:808/datas/videos/20191011152741.mp4
            //http://192.168.10.227:818/datas/videos/20191011152741.mp4
            //20190929095338.rar
            fileFetch.run();
            Thread.sleep(1000);

            fileFetch.siteStop();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }

    public static void main(String[] args)
    {
        new TestMethod();
    }

}
